package com.spring.ioc.study.demo;

import com.spring.ioc.study.annotation.Autowired;
import com.spring.ioc.study.annotation.Component;
import com.spring.ioc.study.annotation.Qualifier;
import com.spring.ioc.study.annotation.Value;
import lombok.Data;

/**
 *
 * @Description:
 * @Author: 梁飞
 * @Date: 2021-08-25 08:38
 */
@Data
@Component("demo")
public class Demo2 {

    @Value("TOM")
    private String name;

    @Value("10")
    private Integer age;

    @Autowired
    @Qualifier("demo33")
    private Demo3 demo3;
}
